import { createApp, provide } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import { useRoute, useRouter } from "vue-router";

const app = createApp({
    ...App,
    setup() {
        const route = useRoute();
        const router = useRouter();
        provide("route", route);
        provide("router", router);
    },
});

app.use(store).use(router).mount("#app");
